]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
logout dialog: Show the correct text right away
authorMatthias Clasen <mclasen@redhat.com>
Wed, 12 Jun 2013 02:59:12 +0000 (22:59 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 12 Jun 2013 09:48:23 +0000 (05:48 -0400)
The end session dialog was waiting a second before updating
its text to display the timer. It is nicer to show the correct
message from the start.

https://bugzilla.gnome.org/show_bug.cgi?id=702056

js/ui/endSessionDialog.js

index fa606193f60fd765026b218cd2d676329782130c..c36f5532d1476040697aff92e90dab48179503f9 100644 (file)
@@ -420,6 +420,7 @@ const EndSessionDialog = new Lang.Class({
     _startTimer: function() {
         let startTime = GLib.get_monotonic_time();
         this._secondsLeft = this._totalSecondsToStayOpen;
+        this._updateDescription();
 
         this._timerId = Mainloop.timeout_add_seconds(1, Lang.bind(this,
             function() {